﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 适配器模式
{
    class Program
    {
        static void Main(string[] args)
        {
           IPlayer b= new Forwards();
           b.Name = "巴蒂尔";
           b.Attack();
           b.Defence();

           IPlayer o = new Center();
           o.Name = "奥拉朱旺";
           o.Attack();
           o.Defence();

           //IPlayer ym = new CenterForeign();
           //ym.Name = "姚明";
           //ym.Attack();
           //ym.Defence();
          IPlayer ym= new  Translator();
          ym.Name = "姚明";
          ym.Attack();
          ym.Defence();
        
          Console.WriteLine(ym.Name);
           Console.ReadLine();
        }
    }

    

  
    
}
